#include "CityList.h"


ostream& operator<<(ostream& os, City& c)
{
	os<<"\t"<<c.cityName<<"\t"<<c.cityCode<<"\t"<<c.urlencode()<<"\n";
	return os;
}

istream&  operator>>(istream& is ,City& c)
{
	is>>c.cityName>>c.cityCode>>c.urlencode();
	return is;
}

bool operator == (City &c1,City& c2 )
{
	return c1.cityName == c2.cityName;
} 

bool operator==(City& c, string str)
{
	return c.cityName == str;
}

